import  shelve

f = shelve.open('shelve_text')

#f['info']={'name':'alex','age':'18'}
#f['shopping']={'name':'abcde','price':'1000'}

data = f.get('info')
print(data)
data= data['name']
print(data)